# -*- coding: utf-8 -*-
"""
Created on Sat Oct 12 00:20:43 2019

@author: vistor
"""
from urllib import request
import re
import time
#s = input("ppp:")
def trapi(s):
    sous=s.replace(' ','')
    sr = "http://translate.google.cn/translate_a/\
    single?client=gtx&sl=en&tl=zh-CN&dt=t&q="+sous
    resp = request.urlopen(sr)
    li = resp.read().decode()
    pat = re.compile(r'[\u4e00-\u9fa5]+')
    ans = pat.findall(li)
    print(ans)
trapi("i love you")